package com.xqboss.apps.mapper.synthesis;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xqboss.apps.domain.synthesis.SynthesisPlanConsume;
import com.xqboss.apps.dto.synthesis.SynthesisPlanConsumeDto;
import com.xqboss.apps.vo.synthesis.SynthesisPlanPageConfigVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 合成方案-消耗配置 Mapper 接口
 * </p>
 *
 * @author 木鱼
 * @since 2023-11-17
 */
@Mapper
@Repository
public interface SynthesisPlanConsumeMapper extends BaseMapper<SynthesisPlanConsume> {
    List<SynthesisPlanPageConfigVo> selectBasicList(@Param("planId") Long planId);

    List<SynthesisPlanConsumeDto> selectDetailList(@Param("planId") Long planId);

    List<SynthesisPlanConsumeDto> selectGroupConsume(@Param("planId") Long planId,
                                                     @Param("groupId") Long planGroupId);
}
